-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Add SecurityContext to delegating TaskScheduler #9532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @gbaso! I've left some feedback inilne.
...ain/java/org/springframework/security/scheduling/DelegatingSecurityContextTaskScheduler.java
Outdated
Show resolved
Hide resolved
...ain/java/org/springframework/security/scheduling/DelegatingSecurityContextTaskScheduler.java
Outdated
Show resolved
Hide resolved
.../springframework/security/scheduling/CurrentDelegatingSecurityContextTaskSchedulerTests.java
Outdated
Show resolved
Hide resolved
.../springframework/security/scheduling/CurrentDelegatingSecurityContextTaskSchedulerTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, @gbaso! I've left some additional feedback inline.
...ava/org/springframework/security/scheduling/DelegatingSecurityContextTaskSchedulerTests.java
Outdated
Show resolved
Hide resolved
...ain/java/org/springframework/security/scheduling/DelegatingSecurityContextTaskScheduler.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, @gbaso!
Thanks for your descriptive commit messages. To simplify maintenance, will you please squash your commits into a single atomic commit?
Wrap DelegatingSecurityContextTaskScheduler's Runnable tasks in DelegatingSecurityContextRunnables, allowing to specify a SecurityContext to use for tasks execution. - Renamed private variable taskScheduler to delegate - Removed unused local variable in unit test - Add SecurityContext tests for delegating TaskScheduler Closes spring-projectsgh-9514
|
@jzheaux PR should be ready now |
|
Thanks, @gbaso! I've scheduled this for 5.6.0-M1. |
Wrap DelegatingSecurityContextTaskScheduler's Runnable tasks in
DelegatingSecurityContextRunnables, allowing to specify a
SecurityContext to use for tasks execution.
Closes gh-9514